//
//  HomeCellHeaderView.swift
//  WangPu
//
//  Created by xiaozhi on 15/10/25.
//  Copyright © 2015年 zhixiao. All rights reserved.
//

import UIKit

class HomeCellHeaderView: UIView {
    @IBOutlet var headImageView:UIImageView!
    @IBOutlet var name:UILabel!
    @IBOutlet var info1:UILabel!
    @IBOutlet var info2:UILabel!
    @IBOutlet var bgView:UIView!
    var section:NSInteger = 0
     var enterButtonClickHandle:((NSInteger)->Void)?
//    @IBOutlet var address:UILabel!
    /*
    // Only override drawRect: if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func drawRect(rect: CGRect) {
        // Drawing code
    }
    */
    override func awakeFromNib() {
        super.awakeFromNib()
        name.textColor = commonRedColor
        info1.textColor = UIColor.lightGrayColor()
        info2.textColor = commonRedColor
        bgView.backgroundColor = commonBackgoundColor
    }
    @IBAction func enterButtonClick(button:UIButton)->Void{
        enterButtonClickHandle?(section)
    }
}
